<!-- "Visual Paradigm: DO NOT MODIFY THIS FILE!"

This is an automatic generated file. It will be regenerated every time 
you generate persistence class.

Modifying its content may cause the program not work, or your work may lost.-->

<!-- Licensee: DuKe TeAm
License Type: Purchased-->
<html>
<head><title>SemanaAgregada List</title>
</head>
<body>
<center>
<h1>SemanaAgregada List</h1>
<table border="1" width="80%">
	<tr>
		<td>ID(PK)</td>
		<td>DomingoPrecoSUM</td>
		<td>DomingoPrecoAVG</td>
		<td>SegundaPrecoSUM</td>
		<td>SegundaPrecoAVG</td>
		<td>TercaPrecoSUM</td>
		<td>TercaPrecoAVG</td>
		<td>QuartaPrecoSUM</td>
		<td>QuartaPrecoAVG</td>
		<td>QuintaPrecoSUM</td>
		<td>QuintaPrecoAVG</td>
		<td>SextaPrecoSUM</td>
		<td>SextaPrecoAVG</td>
		<td>SabadoPrecoSUM</td>
		<td>SabadoPrecoAVG</td>
		<td>Data</td>
		<td>Unidade</td>
		<td>DomingoGastoSUM</td>
		<td>DomingoGastoAVG</td>
		<td>SegundaGastoSUM</td>
		<td>SegundaGastoAVG</td>
		<td>TercaGastoSUM</td>
		<td>TercaGastoAVG</td>
		<td>QuartaGastoSUM</td>
		<td>QuartaGastoAVG</td>
		<td>QuintaGastoSUM</td>
		<td>QuintaGastoAVG</td>
		<td>SextaGastoSUM</td>
		<td>SextaGastoAVG</td>
		<td>SabadoGastoSUM</td>
		<td>SabadoGastoAVG</td>
		<td>Contract(FK)</td>
		<td></td>
	</tr>
<%
smartgrid.SemanaAgregada[] semanaAgregadas = smartgrid.SemanaAgregada.listSemanaAgregadaByQuery(null, null);
for(int i = 0; i < semanaAgregadas.length; i++) {
		out.print("<tr>");
		out.print("<td>");
		out.print(semanaAgregadas[i].getORMID());
		out.print("</td>");
		out.print("<td>");
		out.print(semanaAgregadas[i].getDomingoPrecoSUM());
		out.println("</td>");
		out.print("<td>");
		out.print(semanaAgregadas[i].getDomingoPrecoAVG());
		out.println("</td>");
		out.print("<td>");
		out.print(semanaAgregadas[i].getSegundaPrecoSUM());
		out.println("</td>");
		out.print("<td>");
		out.print(semanaAgregadas[i].getSegundaPrecoAVG());
		out.println("</td>");
		out.print("<td>");
		out.print(semanaAgregadas[i].getTercaPrecoSUM());
		out.println("</td>");
		out.print("<td>");
		out.print(semanaAgregadas[i].getTercaPrecoAVG());
		out.println("</td>");
		out.print("<td>");
		out.print(semanaAgregadas[i].getQuartaPrecoSUM());
		out.println("</td>");
		out.print("<td>");
		out.print(semanaAgregadas[i].getQuartaPrecoAVG());
		out.println("</td>");
		out.print("<td>");
		out.print(semanaAgregadas[i].getQuintaPrecoSUM());
		out.println("</td>");
		out.print("<td>");
		out.print(semanaAgregadas[i].getQuintaPrecoAVG());
		out.println("</td>");
		out.print("<td>");
		out.print(semanaAgregadas[i].getSextaPrecoSUM());
		out.println("</td>");
		out.print("<td>");
		out.print(semanaAgregadas[i].getSextaPrecoAVG());
		out.println("</td>");
		out.print("<td>");
		out.print(semanaAgregadas[i].getSabadoPrecoSUM());
		out.println("</td>");
		out.print("<td>");
		out.print(semanaAgregadas[i].getSabadoPrecoAVG());
		out.println("</td>");
		out.print("<td>");
		out.print(semanaAgregadas[i].getData());
		out.println("</td>");
		out.print("<td>");
		out.print(semanaAgregadas[i].getUnidade());
		out.println("</td>");
		out.print("<td>");
		out.print(semanaAgregadas[i].getDomingoGastoSUM());
		out.println("</td>");
		out.print("<td>");
		out.print(semanaAgregadas[i].getDomingoGastoAVG());
		out.println("</td>");
		out.print("<td>");
		out.print(semanaAgregadas[i].getSegundaGastoSUM());
		out.println("</td>");
		out.print("<td>");
		out.print(semanaAgregadas[i].getSegundaGastoAVG());
		out.println("</td>");
		out.print("<td>");
		out.print(semanaAgregadas[i].getTercaGastoSUM());
		out.println("</td>");
		out.print("<td>");
		out.print(semanaAgregadas[i].getTercaGastoAVG());
		out.println("</td>");
		out.print("<td>");
		out.print(semanaAgregadas[i].getQuartaGastoSUM());
		out.println("</td>");
		out.print("<td>");
		out.print(semanaAgregadas[i].getQuartaGastoAVG());
		out.println("</td>");
		out.print("<td>");
		out.print(semanaAgregadas[i].getQuintaGastoSUM());
		out.println("</td>");
		out.print("<td>");
		out.print(semanaAgregadas[i].getQuintaGastoAVG());
		out.println("</td>");
		out.print("<td>");
		out.print(semanaAgregadas[i].getSextaGastoSUM());
		out.println("</td>");
		out.print("<td>");
		out.print(semanaAgregadas[i].getSextaGastoAVG());
		out.println("</td>");
		out.print("<td>");
		out.print(semanaAgregadas[i].getSabadoGastoSUM());
		out.println("</td>");
		out.print("<td>");
		out.print(semanaAgregadas[i].getSabadoGastoAVG());
		out.println("</td>");
		
		smartgrid.Contract contract = semanaAgregadas[i].getContract();
		if(contract != null) {
			out.print("<td>");
			out.print("<a href=\"Contract.jsp?action=search&ID=");
			out.print(contract.getORMID());
			out.print("\">");
			out.print(contract.getORMID());
			out.print("</a>");
			out.println("</td>");
		}
		
		else
 {
out.println("<td></td>");
		}
		
		out.print("<td>");
		out.print("<a href=\"SemanaAgregada.jsp?action=search&ID=");
		out.print(semanaAgregadas[i].getORMID());
		out.print("\">");
		out.print("Edit");
		out.print("</a>");
		out.print("</td>");
		out.println("</td>");
		out.println("</tr>");
}

%>
</table><br>
<a href="index.html">Index page</a>
 | 
<a href="SemanaAgregada.jsp">Add SemanaAgregada</a>
</center>
</body>
</html>
